#include "Phase.h"
#include "GameplayState.h"

Phase::Phase()
{
	m_hImage = SGD::GraphicsManager::GetInstance()->LoadTexture("resource/graphics/Phase_Gauntlets.png");
}

Phase::~Phase()
{
	SGD::GraphicsManager::GetInstance()->UnloadTexture(m_hImage);
}

void Phase::Render()
{
	GameplayState* game = GameplayState::GetInstance();
	SGD::Point pos(m_ptPosition.x - game->GetCamX(), m_ptPosition.y - game->GetCamY());

	if (m_bAlive)
		SGD::GraphicsManager::GetInstance()->DrawTexture(m_hImage, pos);
}